<h3>Sites found</h3>

<% unless @sites.empty? %>
<table>
  <tr>
    <th>Site</th>
    <th>Phone Number</th>
  </tr>
<% @sites.each do |site| %>
  <tr>
    <td>
      <%= link_to site.agency.name, agency_path(site.agency.id) %> - 
      <%= link_to site.name, agency_site_path(site.agency.id, site.id) %>
    </td>
    <td><%= site.phone %></td>
  </tr>
<% end -%>
</table>
<% end -%>

<%= "No available sites found!" if @sites.empty? %>